package miiteen.customsportal.basic.beans;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;

import miiteen.common.json.jackson.LongSerialize;
import miiteen.common.utils.FieldMeta;
import miiteen.sys.base.bean.BasePo;

/**
 * Name: CustomsPortal_Basic_window
 * Des: -Bean
 * Author: yulp
 * Date: 2020-07-03
 */
@ApiModel("飘窗管理")
public class BasicWindow extends BasePo {


    @FieldMeta(name = "id")
    private long id;

    @FieldMeta(name = "标题")
    @ApiModelProperty(value = "标题" )
    private String title;

    @FieldMeta(name = "内容")
    @ApiModelProperty(value = "内容" )
    private String slogan;

    @FieldMeta(name = "作者")
    @ApiModelProperty(value = "作者" )
    private String author;

    @FieldMeta(name = "开始显示时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始显示时间" )
    private Date startTime;

    @FieldMeta(name = "结束显示时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束显示时间" )
    private Date endTime;

    @FieldMeta(name = "跳转链接地址")
    @ApiModelProperty(value = "跳转链接地址" )
    private String urlSrc;

    @FieldMeta(name = "部门Id")
    private long deptId;

    @FieldMeta(name = "组织ID")
    private long organizeId;

    @FieldMeta(name = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @FieldMeta(name = "创建人id")
    private long createId;

    @FieldMeta(name = "创建人")
    private String creator;

    @FieldMeta(name = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @FieldMeta(name = "更新人id")
    private long updateId;

    @FieldMeta(name = "更新人")
    private String updator;

    @FieldMeta(name = "是否删除")
    private int delState;

    @FieldMeta(name = "")
    private String remark;

    @FieldMeta(name = "")
    private int reserveField;

    @FieldMeta(name = "")
    private String reserveField1;

    /*
     * 添加字段
     */
    @FieldMeta(name = "照片")
    private String imageSrc;

    @JsonSerialize(using = LongSerialize.class)
    public long getId() {
        return this.id;
    }

    public void setId(long value) {
        this.id = value;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String value) {
        this.title = value;
    }

    public String getSlogan() {
        return slogan;
    }

    public void setSlogan(String slogan) {
        this.slogan = slogan;
    }

    public String getAuthor() {
        return this.author;
    }

    public void setAuthor(String value) {
        this.author = value;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getStartTime() {
        return this.startTime;
    }

    public void setStartTime(Date value) {
        this.startTime = value;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getEndTime() {
        return this.endTime;
    }

    public void setEndTime(Date value) {
        this.endTime = value;
    }

    public String getUrlSrc() {
        return urlSrc;
    }

    public void setUrlSrc(String urlSrc) {
        this.urlSrc = urlSrc;
    }

    @JsonSerialize(using = LongSerialize.class)
    public long getDeptId() {
        return this.deptId;
    }

    public void setDeptId(long value) {
        this.deptId = value;
    }

    @JsonSerialize(using = LongSerialize.class)
    public long getOrganizeId() {
        return this.organizeId;
    }

    public void setOrganizeId(long value) {
        this.organizeId = value;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date value) {
        this.createTime = value;
    }

    @JsonSerialize(using = LongSerialize.class)
    public long getCreateId() {
        return this.createId;
    }

    public void setCreateId(long value) {
        this.createId = value;
    }

    public String getCreator() {
        return this.creator;
    }

    public void setCreator(String value) {
        this.creator = value;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(Date value) {
        this.updateTime = value;
    }

    @JsonSerialize(using = LongSerialize.class)
    public long getUpdateId() {
        return this.updateId;
    }

    public void setUpdateId(long value) {
        this.updateId = value;
    }

    public String getUpdator() {
        return this.updator;
    }

    public void setUpdator(String value) {
        this.updator = value;
    }

    public int getDelState() {
        return this.delState;
    }

    public void setDelState(int value) {
        this.delState = value;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String value) {
        this.remark = value;
    }

    public int getReserveField() {
        return this.reserveField;
    }

    public void setReserveField(int value) {
        this.reserveField = value;
    }

    public String getReserveField1() {
        return this.reserveField1;
    }

    public void setReserveField1(String value) {
        this.reserveField1 = value;
    }

    public String getImageSrc() {
        return imageSrc;
    }

    public void setImageSrc(String imageSrc) {
        this.imageSrc = imageSrc;
    }
}
